package com.chang.service;

import com.chang.entity.Essay;

import java.util.List;
import java.util.Date;

public interface EssayService {
    List<Essay> findAllEssay();
    List<Essay> findAllEssays();
    Essay findEachEssay(int essayId);
    Essay findEssayById(int id);
    int insertEssay(String title,String author,String content,Date time,String type);
    int updateEssay(int id,String title,String author,String content,Date time,String type);
    boolean deleteEssay(int id);
    Essay checkEssay(String title, String author, String content, Date time, String type);
    String findEssayTitle(int essayId);

    /*miao*/
    Essay checkEssayByName(String title);

}
